<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="author" th:content="${contentAuthor}"/>
    <meta name="description" th:content="${settings.seo_description}"/>
    <meta name="keywords" th:content="${settings.seo_keywords}"/>
    <link rel="shortcut icon" th:href="${settings.website_logo_small}">
    <link rel="stylesheet" href="/static/def/plugins/layui/css/layui.css">
    <link rel="stylesheet" href="/static/def/plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="/static/def/plugins/animate/animate.min.css">
    <link rel="stylesheet" href="/static/def/css/style.css">
    <link rel="stylesheet" href="/static/def/css/layui-theme-nbv5.css">
    <link rel="stylesheet" href="/static/def/plugins/pushbar/pushbar.css">
    <link rel="stylesheet" href="/static/def/css/simple.css">
    <title th:text="${settings.website_name+' '+settings.def_theme_conf.nav_menus.menu_home}"></title>
</head>
<body class="layui-anim layui-anim-fadein simple">
<!--顶部导航栏-->
<div th:replace="templates/def/fragment/header (cur='zdy')"></div>
<!--顶部文字-->
<div class="layui-container top-block">
    <blockquote class="layui-elem-quote">
        发布统计：总【<span class="sum-font" th:text="${#numbers.formatDecimal(contentCount,1,'COMMA',0,'POINT')}"></span>】篇，
        共【<span class="sum-font" th:text="${#numbers.formatDecimal(blogWords,1,'COMMA',0,'POINT')}"></span>】字，
        运营【<span class="sum-font" th:text="${#numbers.formatDecimal(runningDays,1,'COMMA',0,'POINT')}"></span>】天；
        <span th:utext="${settings.def_theme_conf.index_top_text}"></span>
        <div class="clock layui-show-md-inline-block layui-show-lg-inline-block layui-hide-xs layui-hide-sm">
            <span class="clock-font">当前日期</span>：<span id="current-datetime"></span>
        </div>
    </blockquote>
</div>
<!--内容文章正体-->
<div id="main-body" class="layui-container">

</div>
<!--底部导航栏-->
<div th:replace="templates/def/fragment/footer"></div>
<!--移动设备菜单导航-->
<div th:replace="templates/def/fragment/mobile_nav"></div>

<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="/static/def/plugins/layui/layui.js"></script>
<script src="/static/def/plugins/jquery/jquery-2.1.4.min.js"></script>
<script src="/static/def/js/script.js"></script>
<script src="/static/def/js/notepress.js"></script>
<script src="/static/def/plugins/hc-sticky/hc-sticky.min.js"></script>
<script src="/static/def/plugins/pushbar/pushbar.js"></script>
<!--suppress JSIncompatibleTypesComparison, JSCheckFunctionSignatures, JSMismatchedCollectionQueryUpdate -->
<script th:inline="javascript">
    var s = [[${s eq null ? '' : s}]];
    $(function () {

        window.addEventListener("scroll", npfront.headerScroll());
        npfront.miniHeader("main-body");


        new Pushbar({
            blur: true,
            overlay: true
        });


        layui.use(['layer', 'element', 'col66', 'col39', 'col93', 'colcard'], function () {
            var layer = layui.layer,
                element = layui.element,
                col66 = layui.col66,
                col39 = layui.col39,
                col93 = layui.col93,
                colcard = layui.colcard;

            var contentsNonePage = [[${contentsNonePage}]];
            var contentsAllPage = [[${contentsAllPage}]];
            var contentsTopPage = [[${contentsTopPage}]];
            var contentsRecommendPage = [[${contentsRecommendPage}]];
            var contentsHotPage = [[${contentsHotPage}]];
            var settings = [[${settings}]];
            var contentCategoryMapList = [[${contentCategoryMapList}]];
            var contentTagList = [[${contentTagList}]];
            var contentCommentCount = [[${contentCommentCount}]];
            var contentAuthorNameMap = [[${contentAuthorNameMap}]];
            var typesetting = npfront.getQueryString("style")
            var cateList = [[${cateList}]];
            var tagList = [[${tagList}]];
            var linkList = [[${linkList}]];
            var randomContents = [[${randomContents}]];
            var npsu = [[${npsu}]];

            npfront.miniHeaderNavBtn(layer);

            element.render();

            var objParam = {
                npsu: npsu,
                settings: settings,
                nonePage: contentsNonePage,
                topPage: contentsTopPage,
                hotPage: contentsHotPage,
                recommendPage: contentsRecommendPage,
                randomContents: randomContents,
                authorsMap: contentAuthorNameMap,
                categoriesMap: contentCategoryMapList,
                commentCountsMap: contentCommentCount,
                s: s
            };

            if (typesetting === 'left6right6') {
                col66(objParam);
            } else if (typesetting === 'left3right9') {
                objParam.cateList = cateList;
                objParam.tagList = tagList;
                objParam.linkList = linkList;
                col39(objParam);
            } else if (typesetting === 'left9right3') {
                objParam.cateList = cateList;
                objParam.tagList = tagList;
                objParam.linkList = linkList;
                col93(objParam);
            } else if (typesetting === 'colcard') {
                objParam.tagMap = contentTagList;
                objParam.allPage = contentsAllPage;
                objParam.nextAjaxUrl = "/index/next";
                colcard(objParam);
            } else {
                layer.msg('非法访问，请刷新页面！');
            }


            if (contentsNonePage.total === 0) {
                npfront.footerFixed($(".bottom-nav"), 980);
                $(window).resize(function () {
                    npfront.footerFixed($(".bottom-nav"), 980);
                });
            }


        });

    });


</script>
</body>
</html>